from collections import ChainMap
user_dict1={'a':'bobby1','b':'bobby2'}
user_dict2={'b':'bobby2','c':'bobby3'}
new_dict=ChainMap(user_dict1,user_dict2)
print(new_dict['b'])
print(new_dict)
dict_map=new_dict.maps
print(dict_map)
dict_map[0]['a']='bobby'
print(new_dict)
new_dict2=new_dict.new_child({'aa':'A','bb':'B'})
print(new_dict2)
